import request from '@/utils/request'

/**
 * @description: 获取清单信息
 * @param {*} params
 * @return {*}
 */
export function customVisualPannelList(params) {
  return request({
    url: '/custom/visualpannel/list',
    method: 'get',
    params
  })
}

/**
 * @description: 上传图片
 * @param {*} data
 * @return {*}
 */
export function addCustomVisualPanneItem(data) {
  return request({
    url: '/add/custom/visualpannel/item',
    method: 'post',
    data
  })
}

/**
 * @description: 删除自定义看板信息
 * @param {*} data
 * @return {*}
 */
export function deleteCustomVisualPannelItem(data) {
  return request({
    url: '/delete/custom/visualpannel/item',
    method: 'post',
    data
  })
}

/**
 * @description: 更新自定义看板的展示顺序
 * @param {*} data
 * @return {*}
 */
export function updateCustomVisualPannelItemSort(data) {
  return request({
    url: '/update/custom/visualpannel/item/sort',
    method: 'post',
    data
  })
}
